/**
 * elancom Corporation copy right 2012 - 2015  
 *   
 * $$Header: https://192.168.1.224/svn/elancom/product/elancom-platform/trunk/src/main/java/com/elancom/codec/encrypt/Base64Encrypt.java 1034 2012-07-02 03:09:12Z lanzhouxue $$
 * $$Id: Base64Encrypt.java 1034 2012-07-02 03:09:12Z lanzhouxue $$
 * $$Author: lanzhouxue $$
 * $$Date: 2012-07-02 11:09:12 +0800 (周一, 02 七月 2012) $$
 * $$Revision: 1034 $$
 */
package com.elancom.framework.commons.codec;

import org.apache.commons.codec.binary.Base64;

/**
 * @author elancom
 * @date 2012-5-27
 */
public class Base64Encrypt implements Encrypt {
	@Override
	public String encrypt(String rawTxt) {
		if (rawTxt == null) {
			return null;
		}

		return new String(Base64.encodeBase64(rawTxt.getBytes()));
	}
}
